package com.xsy.ftp;

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.pool.PoolableObjectFactory;
import org.apache.commons.pool.impl.GenericObjectPool.Config;

public class FTPPool extends Pool<FTPClient> {

    public FTPPool(Config poolConfig, FTPClientConfigure ftpClientConfigure) {
        this(poolConfig, new FTPPoolAbleObjectFactory(ftpClientConfigure));
    }

    public FTPPool(Config poolConfig, PoolableObjectFactory<FTPClient> factory) {
        super(poolConfig, factory);
    }

    @Override
    public void returnResource(FTPClient client) {
        super.returnResource(client);
    }

    @Override
    public FTPClient getResource() {
        return super.getResource();
    }

    @Override
    public void destroy() {
        super.destroy();
    }

    @Override
    public int inPoolSize() {
        return super.inPoolSize();
    }

    @Override
    public int borrowSize() {
        return super.borrowSize();
    }
}